package com.scott.repository;

import com.scott.po.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 系统用户查询接口
 * Created by Scott on 2017/3/21.
 */
@Repository
public interface SysUserRepository extends JpaRepository<SysUser, String> {

    /**
     * 根据用户名查询用信息信息
     * @param username 登录账号
     * @return 用户信息
     */
    SysUser findByUsername(String username);
}
